package com.translate.web.api.controller;

import java.util.List;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.response.vo.ResponseModel;
import com.translate.vo.IdentityVO;
import com.translate.web.service.IIdentityService;

@RestController
@RequestMapping("identity")
public class IdentityController {
	private IIdentityService service;

	public IdentityController(IIdentityService service) {
		this.service = service;
	}
	
	/**
	 * 活动
	 * @param param
	 * @return
	 */
	@PostMapping("/listIdentity")
	public ResponseModel<List<IdentityVO>> listActivitys() {
		
		return ResponseModel.<List<IdentityVO>>success(this.service.getListFromCache(IdentityVO.class));
	}

}